#include "landscape.h"
#include "play.h"
#include "consts.h"

Landscape::Landscape(CL_String sprite_name, ObjectType type, CL_Pointf location) : GObject(sprite_name, location.x, location.y, type)
{
	setWidth(ORIGINAL_MIN_PIXEL);
	setHeight(ORIGINAL_MIN_PIXEL);

	if (type != BUSHES)
		Play::getInstance()->registerAtField(this, true);
}

void Landscape::update(int dt)
{
	drawPart();
}